<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="../../common/sessionValidate.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html lang="UTF-8">
  <head>
    <title>T_building信息维护</title>
    <%@ include file="../../common/meta.jsp"%>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="X-UA-Compatible" content="IE=9">
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <link rel="stylesheet" href="<%=basePath%>css/my-bootstrap.css" media="screen"  id="tuserskin">
    <link rel="stylesheet" href="<%=basePath%>js/toastr/toastr.css">
    <link rel="stylesheet" href="<%=basePath%>css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="<%=basePath%>css/font-awesome.min.css">
    <script type="text/javascript" src="<%= basePath %>js/jquery.cookie.js"></script>
  </head>
  <style>
hr {
    margin-top:1px;
    border-bottom: 1px solid #1BBC9B;
}
  </style>
<body>
<div>
 <!-------------------------- 面板  start--------------------------------->
 <form class="form-horizontal form-bordered form-row-strippe" name="ffAdd" id="ffAdd" mentod="post" role="form" data-toggle="validator" enctype="multipart/form-data">
  <div class="" style="margin-right:2px;padding-right:1px;"> 
	<div class="panel panel-primary" >
	  <div class="panel-heading clearfix"  id="addHeaderDiv">
	  </div>
	  <div class="panel-body">
           <div class="row" >
                <h5>&nbsp;&nbsp;基本信息</h5>
	            <hr>
            	<div class="col-xs-6"><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> buildingid</label>
                            <div class="col-xs-9">
                                <input id="buildingid" name="buildingid" type="text" class="form-control" placeholder="buildingid" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> name</label>
                            <div class="col-xs-9">
                                <input id="name" name="name" type="text" class="form-control" placeholder="name" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> useofbuilding</label>
                            <div class="col-xs-9">
                                <input id="useofbuilding" name="useofbuilding" type="text" class="form-control" placeholder="useofbuilding" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">楼层数</label>
                            <div class="col-xs-9">
                                <input id="floornum" name="floornum" type="text" class="form-control" placeholder="floornum" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">建筑面积</label>
                            <div class="col-xs-9">
                                <input id="area" name="area" type="text" class="form-control" placeholder="area" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ablearea</label>
                            <div class="col-xs-9">
                                <input id="ablearea" name="ablearea" type="text" class="form-control" placeholder="ablearea" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">房源数量</label>
                            <div class="col-xs-9">
                                <input id="housenum" name="housenum" type="text" class="form-control" placeholder="housenum" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">空置数量</label>
                            <div class="col-xs-9">
                                <input id="emptynum" name="emptynum" type="text" class="form-control" placeholder="emptynum" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> linkman</label>
                            <div class="col-xs-9">
                                <input id="linkman" name="linkman" type="text" class="form-control" placeholder="linkman" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> linktel</label>
                            <div class="col-xs-9">
                                <input id="linktel" name="linktel" type="text" class="form-control" placeholder="linktel" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext1</label>
                            <div class="col-xs-9">
                                <input id="ext1" name="ext1" type="text" class="form-control" placeholder="ext1" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext2</label>
                            <div class="col-xs-9">
                                <input id="ext2" name="ext2" type="text" class="form-control" placeholder="ext2" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext3</label>
                            <div class="col-xs-9">
                                <input id="ext3" name="ext3" type="text" class="form-control" placeholder="ext3" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext4</label>
                            <div class="col-xs-9">
                                <input id="ext4" name="ext4" type="text" class="form-control" placeholder="ext4" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext5</label>
                            <div class="col-xs-9">
                                <input id="ext5" name="ext5" type="text" class="form-control" placeholder="ext5" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext6</label>
                            <div class="col-xs-9">
                                <input id="ext6" name="ext6" type="text" class="form-control" placeholder="ext6" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> creater</label>
                            <div class="col-xs-9">
                                <input id="creater" name="creater" type="text" class="form-control" placeholder="creater" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> creattime</label>
                            <div class="col-xs-9">
                                <input id="creattime" name="creattime" type="text" class="form-control" placeholder="creattime" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> updater</label>
                            <div class="col-xs-9">
                                <input id="updater" name="updater" type="text" class="form-control" placeholder="updater" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> updatetime</label>
                            <div class="col-xs-9">
                                <input id="updatetime" name="updatetime" type="text" class="form-control" placeholder="updatetime" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> biztype</label>
                            <div class="col-xs-9">
                                <input id="biztype" name="biztype" type="text" class="form-control" placeholder="biztype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">公摊率</label>
                            <div class="col-xs-9">
                                <input id="publicrate" name="publicrate" type="text" class="form-control" placeholder="publicrate" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> imgpath</label>
                            <div class="col-xs-9">
                                <input id="imgpath" name="imgpath" type="text" class="form-control" placeholder="imgpath" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">备注</label>
                            <div class="col-xs-9">
                                <input id="note" name="note" type="text" class="form-control" placeholder="note" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> debtwarnday</label>
                            <div class="col-xs-9">
                                <input id="debtwarnday" name="debtwarnday" type="text" class="form-control" placeholder="debtwarnday" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> memo</label>
                            <div class="col-xs-9">
                                <input id="memo" name="memo" type="text" class="form-control" placeholder="memo" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">附件</label>
                            <div class="col-xs-9">
                                <input id="attach" name="attach" type="text" class="form-control" placeholder="attach" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> htyajinunit</label>
                            <div class="col-xs-9">
                                <input id="htyajinunit" name="htyajinunit" type="text" class="form-control" placeholder="htyajinunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> wuyedays</label>
                            <div class="col-xs-9">
                                <input id="wuyedays" name="wuyedays" type="text" class="form-control" placeholder="wuyedays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">费用名称</label>
                            <div class="col-xs-9">
                                <input id="feiyongname" name="feiyongname" type="text" class="form-control" placeholder="feiyongname" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">税率</label>
                            <div class="col-xs-9">
                                <input id="rate" name="rate" type="text" class="form-control" placeholder="rate" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3">货物名称</label>
                            <div class="col-xs-9">
                                <input id="huowumingcheng" name="huowumingcheng" type="text" class="form-control" placeholder="huowumingcheng" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> youhuizhengce</label>
                            <div class="col-xs-9">
                                <input id="youhuizhengce" name="youhuizhengce" type="text" class="form-control" placeholder="youhuizhengce" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
				<!--如果输入元素是奇数个元素，在n=size/2?int时输出2列格式；如果元素是奇数个，需要在n=size/2?int+1时输出2列格式；需要换列，每行最多显示2列-->
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> youhuizhengcename</label>
                            <div class="col-xs-9">
                                <input id="youhuizhengcename" name="youhuizhengcename" type="text" class="form-control" placeholder="youhuizhengcename" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> buildingtype</label>
                            <div class="col-xs-9">
                                <input id="buildingtype" name="buildingtype" type="text" class="form-control" placeholder="buildingtype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractfeeunit</label>
                            <div class="col-xs-9">
                                <input id="contractfeeunit" name="contractfeeunit" type="text" class="form-control" placeholder="contractfeeunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractnumunit</label>
                            <div class="col-xs-9">
                                <input id="contractnumunit" name="contractnumunit" type="text" class="form-control" placeholder="contractnumunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractprice</label>
                            <div class="col-xs-9">
                                <input id="contractprice" name="contractprice" type="text" class="form-control" placeholder="contractprice" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractcounttype</label>
                            <div class="col-xs-9">
                                <input id="contractcounttype" name="contractcounttype" type="text" class="form-control" placeholder="contractcounttype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractpaytype</label>
                            <div class="col-xs-9">
                                <input id="contractpaytype" name="contractpaytype" type="text" class="form-control" placeholder="contractpaytype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractprepaydays</label>
                            <div class="col-xs-9">
                                <input id="contractprepaydays" name="contractprepaydays" type="text" class="form-control" placeholder="contractprepaydays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractyeardays</label>
                            <div class="col-xs-9">
                                <input id="contractyeardays" name="contractyeardays" type="text" class="form-control" placeholder="contractyeardays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> contractdatetype</label>
                            <div class="col-xs-9">
                                <input id="contractdatetype" name="contractdatetype" type="text" class="form-control" placeholder="contractdatetype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energyfeeunit</label>
                            <div class="col-xs-9">
                                <input id="energyfeeunit" name="energyfeeunit" type="text" class="form-control" placeholder="energyfeeunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energytnumunit</label>
                            <div class="col-xs-9">
                                <input id="energytnumunit" name="energytnumunit" type="text" class="form-control" placeholder="energytnumunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energytprice</label>
                            <div class="col-xs-9">
                                <input id="energytprice" name="energytprice" type="text" class="form-control" placeholder="energytprice" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energycounttype</label>
                            <div class="col-xs-9">
                                <input id="energycounttype" name="energycounttype" type="text" class="form-control" placeholder="energycounttype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energypaytype</label>
                            <div class="col-xs-9">
                                <input id="energypaytype" name="energypaytype" type="text" class="form-control" placeholder="energypaytype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energyprepaydays</label>
                            <div class="col-xs-9">
                                <input id="energyprepaydays" name="energyprepaydays" type="text" class="form-control" placeholder="energyprepaydays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energyyeardays</label>
                            <div class="col-xs-9">
                                <input id="energyyeardays" name="energyyeardays" type="text" class="form-control" placeholder="energyyeardays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> energytdatetype</label>
                            <div class="col-xs-9">
                                <input id="energytdatetype" name="energytdatetype" type="text" class="form-control" placeholder="energytdatetype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertyfeeunit</label>
                            <div class="col-xs-9">
                                <input id="propertyfeeunit" name="propertyfeeunit" type="text" class="form-control" placeholder="propertyfeeunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertynumunit</label>
                            <div class="col-xs-9">
                                <input id="propertynumunit" name="propertynumunit" type="text" class="form-control" placeholder="propertynumunit" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertyprice</label>
                            <div class="col-xs-9">
                                <input id="propertyprice" name="propertyprice" type="text" class="form-control" placeholder="propertyprice" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertycounttype</label>
                            <div class="col-xs-9">
                                <input id="propertycounttype" name="propertycounttype" type="text" class="form-control" placeholder="propertycounttype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertypaytype</label>
                            <div class="col-xs-9">
                                <input id="propertypaytype" name="propertypaytype" type="text" class="form-control" placeholder="propertypaytype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertyprepaydays</label>
                            <div class="col-xs-9">
                                <input id="propertyprepaydays" name="propertyprepaydays" type="text" class="form-control" placeholder="propertyprepaydays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertyyeardays</label>
                            <div class="col-xs-9">
                                <input id="propertyyeardays" name="propertyyeardays" type="text" class="form-control" placeholder="propertyyeardays" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> propertydatetype</label>
                            <div class="col-xs-9">
                                <input id="propertydatetype" name="propertydatetype" type="text" class="form-control" placeholder="propertydatetype" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext7</label>
                            <div class="col-xs-9">
                                <input id="ext7" name="ext7" type="text" class="form-control" placeholder="ext7" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext8</label>
                            <div class="col-xs-9">
                                <input id="ext8" name="ext8" type="text" class="form-control" placeholder="ext8" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext9</label>
                            <div class="col-xs-9">
                                <input id="ext9" name="ext9" type="text" class="form-control" placeholder="ext9" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext10</label>
                            <div class="col-xs-9">
                                <input id="ext10" name="ext10" type="text" class="form-control" placeholder="ext10" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext11</label>
                            <div class="col-xs-9">
                                <input id="ext11" name="ext11" type="text" class="form-control" placeholder="ext11" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <label class="control-label col-xs-3"> ext12</label>
                            <div class="col-xs-9">
                                <input id="ext12" name="ext12" type="text" class="form-control" placeholder="ext12" />
                            </div>
                        </div>
                    </div>
				</div><!--end 换列-->
            </div><!--end row-->
       </div><!--end body-->
    </div>
    </form>
    <!--------------------------面板 end------------------------------------>

    <!-------------------------- 审核面板  start------------------------------->
    <%@ include file="../../index/shenheDiv.jsp" %>
    <!-------------------------- 审核面板  end--------------------------------->

</div>
</body>
</html>

<script src="<%=basePath%>js/bootstrap.min.js"></script>
<!--<script src="<%=basePath%>js/jquery-1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrapValidator.js"></script>-->
<script src="<%=basePath%>js/bootstrap-paginator.min.js"></script>
<script src="<%=basePath%>/js/respond.js"></script>
<script src="<%=basePath%>/js/html5.js"></script>
<script src="<%=basePath%>js/toastr/toastr.js"></script>
<script src="<%=basePath%>js/bootbox.js"></script>
<script src="<%=basePath%>js/jquery.validate.js"></script>
<!-- <script src="<%=basePath%>js/additional-methods.min.js"></script> -->
<script src="<%=basePath%>js/my-jquery-curd.js"></script>
<script src="<%= basePath %>js/tableSortTool.js"></script>
<script src="<%= basePath %>js/calendar.js"></script>
<script type="text/javascript">
    //审核通过提交表单；
    function shtg() {
        var url = "<%=basePath%>t_building/shtgT_building?time=" + Math.random();
        confirmMyCurdShtg(url);
    }

    //审核退回提交表单；
    function shth() {
        var url = "<%=basePath%>t_building/shthT_building?time=" + Math.random();
        confirmMyCurdShth(url);
    }

    //初始化页面加载表单值；
    $().ready(function () {
        //1、初始化数据显示
        var name = "T_demo信息";
        var id = '<%=request.getParameter("appid")%>';
        var tninstanceid = '<%=request.getParameter("tninstanceid")%>';
        var oplx = '<%=request.getParameter("oplx")%>';
        //设置审核意见表单默认值；
        $("#tninstanceid").val(tninstanceid);
        $("#appid").val(id);
        var basePath = "<i class='icon-eye-open'></i>&nbsp;";//设置addHeaderDiv标题文字及按钮
        setHeader2("审核" + name, basePath);
        var url = "<%=basePath%>t_building/getT_building?id=" + id + "&time=" + Math.random();
        $.getJSON(url, function (data) {//获取数据，并且自动填充form，自动代码待修改； @todo;
            setValue(data);
        });
        formReadOnly2('ffAdd');//设置表单不可修改; 会影响所有表单输入框；

        //如果是审核进来的；还是查看历史任务进来的；现实不同按钮
        if (oplx == 'check') {
            $("#checkButtonDiv").show();
            $("#hisButtonDiv").hide();
            $("#note").removeAttr("readOnly");
        } else if (oplx == 'his') {
            $("#checkButtonDiv").hide();
            $("#hisButtonDiv").show();
            $("#note").attr("readOnly", "true");
        }
    }) //end funciton read;

</script>
